<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('管理员电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="number">
        </div>
        <button type="button" class="btn btn-success" id="check_mobile">点击检验手机号</button>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('店铺名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('平台扣点')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ratio" data-rule="required" class="form-control" name="row[ratio]" type="number" placeholder="3代表3%">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客服电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" class="form-control" name="row[tel]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('店铺类型')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="shopType" item="vo"}
                <label for="row[shoptype]-{$key}"><input id="row[shoptype]-{$key}" name="row[shop_type]" type="radio" value="{$key}" {in name="key" value="棋牌"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'>
                <input id="c-city" data-level="city" placeholder="请选择省/市" data-rule="required" class="form-control" data-toggle="city-picker" name="row[city]" type="text">
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="address" class="form-control" name="row[address]" type="text" placeholder="点击获取经纬度按钮后，自动填入,可改写">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('经度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="lng" class="form-control" data-rule="required" name="row[lng]" type="text" placeholder="自动填入" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('纬度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="lat" class="form-control" name="row[lat]" type="text" readonly>
        </div>
        <button type="button" class="btn btn-success" data-toggle="addresspicker" data-input-id="address" data-lng-id="lng"
                data-lat-id="lat">点击获取经纬度
        </button>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('代理商电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ref_mobile" class="form-control" name="row[ref_mobile]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('代理商扣点')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_ratio" class="form-control" name="row[agent_ratio]" type="number" placeholder="1代表1%" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属督导')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-supervision_id" data-rule="required" data-source="shop/supervision/selectpage" class="form-control selectpage form-control" name="row[supervision_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('抽佣类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio_commission">
                {foreach name="commissionType" item="vo"}
                <label for="row[commissiontype]-{$key}"><input id="row[commissiontype]-{$key}" name="row[profit_type]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>


<!--    <div class="form-group">-->
<!--        <label for="c-logo" class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-logo" data-rule="" class="form-control" size="50" name="row[logo]" type="text">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-logo"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-logo"></ul>-->
<!--        </div>-->
<!--    </div>-->


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
